package com.example.anno.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Example {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(AopConfig.class);

        CalculatorService cal = context.getBean(CalculatorService.class);

        int returnValue = cal.add(3, 4);
        System.out.println(returnValue );
    }
}
